package com.qiyeji.real_estate.entity;

import java.util.Date;

public class BitCard extends BitCardKey {
    private String sname;

    private String starttime;

    private String endtime;

    public BitCard(String dcode, Integer id, String scode, String sname, String starttime, String endtime) {
        super(dcode, id, scode);
        this.sname = sname;
        this.starttime = starttime;
        this.endtime = endtime;
    }

    public BitCard(String dcode, String scode, String sname, String starttime) {
        super(dcode, scode);
        this.sname = sname;
        this.starttime = starttime;
    }

    public BitCard(String dcode, String scode, String sname, String starttime, String endtime) {
        super(dcode, scode);
        this.sname = sname;
        this.starttime = starttime;
        this.endtime = endtime;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname == null ? null : sname.trim();
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    @Override
    public String toString() {
        return "BitCard{" +
                "sname='" + sname + '\'' +
                ", starttime='" + starttime + '\'' +
                ", endtime='" + endtime + '\'' +
                '}';
    }
}